home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0797.zip / SDKANN.ZIP / SOURCE.ZIP / EDITSRCH.C < prev    next >
Text File  |  1995-08-31  |  2KB  |  70 lines

  1. /*
  2.  a) start dialog, pass data structure to it
  3.  */
  4.  
  5.  
  6.  
  7. static BOOL OnPathEditCommand(HWND Dialog, UINT Notify,
  8.                                 int ControlId, HWND Control)
  9.     {
  10.     if(ControlId == IDCANCEL)
  11.         {
  12.         EndDialog(Dialog, Always = CANCEL);
  13.         return FALSE;
  14.         }
  15.     else if(ControlId == ID_SKIP)
  16.         {
  17.         EndDialog(Dialog, SKIP);
  18.         if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
  19.             Always  = CANCEL;
  20.         return FALSE;
  21.         }
  22.     else if(ControlId == ID_REPLACE)
  23.         {
  24.         EndDialog(Dialog, REPLACE);
  25.         if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
  26.             Always  = REPLACE;
  27.         }
  28.     else if(ControlId == ID_APPEND)
  29.         {
  30.         EndDialog(Dialog, APPEND);
  31.         if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
  32.             Always  = APPEND;
  33.         }
  34.     return FALSE;
  35.     }
  36.  
  37. BOOL CALLBACK __export WDJ_PathEditDialog(HWND Dialog, UINT Message,
  38.                                WPARAM Param1, LPARAM Param2)
  39.     {
  40.     if(Message == WM_INITDIALOG)
  41.         {
  42.         return TRUE;
  43.         }
  44.     else if(Message == WM_COMMAND)
  45.         {
  46.         return DialogCommand(OnPathEditDialogCommand,
  47.                              Dialog, Param1, Param2);
  48.         }
  49.     return FALSE; /* FALSE == we didn't process msg */
  50.     }
  51.  
  52.  
  53.  
  54. int WDJ_PathEdit(const char *InPath, char *OutPath, int MaxLen)
  55.     {
  56.     
  57.     }
  58.  
  59. int WDJ_PathFind(const char *InPath, const char *File, char *OutPath, int Maxlen)
  60.     {
  61.     int Result  = -1;   /* Assume failure */
  62.     /* sanity check */
  63.     if(InPath && *InPath)
  64.         {
  65.         while(*InPath)
  66.             {
  67.             }
  68.         }
  69.     }
  70.